//
//  MAPolyline+KRSportTrack.m
//  KRSport
//
//  Created by KaoRny on 17/4/22.
//  Copyright © 2017年 KaoRny. All rights reserved.
//

#import "MAPolyline+KRSportTrack.h"
#import <objc/runtime.h>
@implementation MAPolyline (KRSportTrack)

- (void)setSpeed:(CGFloat)speed{
    
    //关联对象
    objc_setAssociatedObject(self, @"speed", @(speed), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (CGFloat)speed{
    
    return [objc_getAssociatedObject(self, @"speed") floatValue];
}

@end
